package com.yc.jpyy.fileattachment.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.yc.jpyy.base.service.BaseService;
import com.yc.jpyy.fileattachment.dao.FileAttachmentDao;
import com.yc.jpyy.fileattachment.service.FileAttachmentService;





@Service
public class FileAttachmentServiceImpl extends BaseService implements FileAttachmentService {
    
	@Autowired
	private FileAttachmentDao fileAttachmentDao;

	

	@Override
	public int addFileAttachmentService(Map<String, Object> paramsMap) throws DataAccessException {
		int ret = fileAttachmentDao.addFileAttachmentDao(paramsMap);
		System.out.println(ret);
		return ret;
	}

	@Override
	public int updateFileAttachmentService(Map<String, Object> paramsMap) throws DataAccessException {
		int ret = fileAttachmentDao.updateFileAttachmentDao(paramsMap);
		return ret;
		
	}

	
	
	

	@Override
	public Map<String, Object> findFileAttachmentByIDServer(Map<String, Object> paramsMap) throws DataAccessException {
	     return fileAttachmentDao.findFileAttachmentByIdDao(paramsMap);
	}

	

	@Override
	public List findFileAttachmentService(Map<String, Object> paramsMap) throws DataAccessException {
		
		List list = fileAttachmentDao.findFileAttachmentDao(paramsMap);
		
		return list;
	}

	@Override
	public int findCountFileAttachmentService(Map<String, Object> paramsMap) throws DataAccessException {
		return fileAttachmentDao.findCountFileAttachmentDao(paramsMap);
	}

	@Override
	public int delFileAttachmentService(Map<String, Object> InvestigInfo) throws DataAccessException {
		return fileAttachmentDao.delFileAttachmentDao(InvestigInfo);
	}

	@Override
	public String getUpLastver(Map<String, Object> paramsMap) throws DataAccessException {
		return fileAttachmentDao.getUpLastver(paramsMap);
	}

	
	


	
}
